package com.hokook.runner;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * <p>一句话描述该类的作用</p>
 *
 * @author crud boy 2020/6/13 12:57
 */
@Slf4j
@Component
public class HeartbeatRunner implements CommandLineRunner {


    @Override
    public void run(String... args) throws Exception {
        while (true) {
            log.info(" HeartbeatRunner ===>>> [{}]", System.currentTimeMillis());
            try {
                Thread.sleep(1500);
            } catch (Exception e) {
            }
        }
    }

}
